package com.example.xjt.orm.user;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepo extends JpaRepository<UserDO, Long> , JpaSpecificationExecutor<UserDO> {


    @Modifying
    @Query("update UserDO m set m.remark=?2 where m.id=?1")
    int updateRemark(Long uid, String desc);


    UserDO findByAccount(String account);

}
